import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ShouyeComponent } from './components/shouye/shouye.component';
import { JuqingComponent } from './components/juqing/juqing.component';
import { XijuComponent } from './components/xiju/xiju.component';
import { DongzuoComponent } from './components/dongzuo/dongzuo.component';
import { AiqingComponent } from './components/aiqing/aiqing.component';
import { KehuanComponent } from './components/kehuan/kehuan.component';
import { DonghuaComponent } from './components/donghua/donghua.component';
import { XuanyiComponent } from './components/xuanyi/xuanyi.component';
import { DengluComponent } from './components/denglu/denglu.component';
import { ZhuceComponent } from './components/zhuce/zhuce.component';
const routes: Routes = [
  
  {

    path:'shouye',component:ShouyeComponent

  },
  {
    path:'juqing',component:JuqingComponent

  },
  {
    path:'xiju',component:XijuComponent

  },
  {

    path:'dongzuo',component:DongzuoComponent

  },
  {
    path:'aiqing',component:AiqingComponent

  },
  {
    path:'kehuan',component:KehuanComponent

  },
  {

    path:'donghua',component:DonghuaComponent

  },
  {
    path:'xuanyi',component:XuanyiComponent


  },
  {
    path:'denglu',component:DengluComponent

  },
  {

    path:'zhuce',component:ZhuceComponent

  },
  {
    path:'**',
    redirectTo:'shouye'

  },

];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
